package com.example.myapplication.part20;

public class Order {
    private String orderId;
    private String tourName;
    private String customerName;
    private String orderDate;
    private String orderTime;
    private int peopleCount;
    private double totalAmount;

    public Order(String tourName, String customerName, String orderDate,
                 String orderTime, int peopleCount, double totalAmount) {
        this.orderId = "TOUR_" + System.currentTimeMillis();
        this.tourName = tourName;
        this.customerName = customerName;
        this.orderDate = orderDate;
        this.orderTime = orderTime;
        this.peopleCount = peopleCount;
        this.totalAmount = totalAmount;
    }

    // Getters
    public String getOrderId() { return orderId; }
    public String getTourName() { return tourName; }
    public String getCustomerName() { return customerName; }
    public String getOrderDate() { return orderDate; }
    public String getOrderTime() { return orderTime; }
    public int getPeopleCount() { return peopleCount; }
    public double getTotalAmount() { return totalAmount; }

}